function showDetail() {
    var selected = $("#studentTable").bootstrapTable('getSelections');
    var selected_length = selected.length;
    if (!selected_length) {
        $MB.n_warning('请勾选需要查看的考生信息！');
        return;
    }
    if (selected_length > 1) {
        $MB.n_warning('一次只能查看一个考生信息！');
        return;
    }
    var userName = $('#user_name').text();
    var studentId = selected[0].studentId;
    $.post(ctx + "midStudent/getMidStudent", { "studentId": studentId }, function(r) {
        if (r.code == 0) {
            var $form = $('#student-add');
            $form.modal();
            var midStudent = r.msg;
            $("#student-add-modal-title").html('考生详细信息');
            /*$form.find("input[name='name']").val(student.name).attr("readonly",true);*/
            $form.find("input[name='id']").val(midStudent.id);
            $form.find("input[name='name']").val(midStudent.name);
            $form.find("input[name='ssex']").val(midStudent.ssex);
            $form.find("input[name='studentId']").val(midStudent.studentId);
            $form.find("input[name='profession']").val(midStudent.profession);
            $form.find("input[name='IDnumber']").val(midStudent.IDnumber);
            $form.find("input[name='receiver']").val(midStudent.receiver);
            $form.find("input[name='direction']").val(midStudent.direction);
            $form.find("input[name='telephone']").val(midStudent.telephone);
            $form.find("input[name='score']").val(midStudent.score);
            $form.find("input[name='graduateAdd']").val(midStudent.graduateAdd);
            $form.find("input[name='userName']").val(userName);
            $("#student-add-button").attr("name", "update");
        } else {
            $MB.n_danger(r.msg);
        }
    });
}